<include file="__PUBLIC__/header"/>
<div class="page-container">
    <!--菜单-->
    <div class="cl pd-5 bg-1 bk-gray mt-10 mb-10">
        <span class="l">
            <a href="javascript:;" onclick="qz_layer_open('新增用户','{|U:'add'}')" class="btn btn-primary radius"><i class="Hui-iconfont">&#xe600;</i> 新增</a>
            <a href="javascript:;" onclick="forbid_all('{|U:'Admin/User/changeStatus/method/forbid'}')" class="btn btn-warning radius ml-5"><i class="Hui-iconfont">&#xe631;</i> 禁止</a>
<a href="javascript:;" onclick="resume_all('{|U:'Admin/User/changeStatus/method/resume'}')" class="btn btn-success radius ml-5"><i class="Hui-iconfont">&#xe615;</i> 启用</a>
            <a href="javascript:;" onclick="del_forever_all('{|U:'del'}','id[]')" class="btn btn-danger radius"><i class="Hui-iconfont">&#xe6e2;</i> 删除</a>
        </span>
        <span class="r" style="line-height:1.6em;margin-top:3px"></span>
    </div>
    <!--列表-->
    <table class="table table-border table-bordered table-bg mt-10 table-sort" id="table">
        <thead>
        <tr class="text-c">
            <th><input type="checkbox" name="" value=""></th>
            <th>ID</th>
            <th>用户名</th>
            <th>昵称</th>
            <th>积分</th>
            <th>登录次数</th>
            <th>最后登录时间</th>
            <th>最后登录IP</th>
            <th>状态</th>
            <th>操作</th>
        </tr>
        </thead>
        <tbody>
        <list from="$data" name="$qz">
            <tr class="text-c">
                <td><input type="checkbox" name="id[]" value="{$qz.id}"></td>
                <td>{$qz.id}</td>
                <td>{$qz.username}</td>
                <td>{$qz.nickname}</td>
                <td>{$qz.score}</td>
                <td>{$qz.login}</td>
                <td>{$qz.last_login_time|date:'Y-m-d H:i',@@}</td>
                <td>{$qz.last_login_ip}</td>
                <td>{$qz.status_text}</td>
                <td>
                    <a title="编辑" href="javascript:;" onclick="qz_layer_open('用户编辑','{|U:'edit',array('id'=>$qz['id'])}')" class="label label-primary radius"><i class="Hui-iconfont">&#xe6df;</i></a>
                    <a title="删除" href="javascript:;" onclick="del_forever(this,'{$qz['id']}','{|U:'del'}')" class="label label-danger radius"><i class="Hui-iconfont">&#xe6e2;</i></a>
                </td>
            </tr>
        </list>
    </table>
    <div class="qz-page">
        {$page}
    </div>
</div>
<include file="__PUBLIC__/footer"/>
</body>
</html>